package cn.tedu.tmall.admin.mall.dao.persist.repository.impl;

import cn.tedu.tmall.admin.mall.dao.persist.mapper.OrderMapper;
import cn.tedu.tmall.admin.mall.dao.persist.repository.IOrderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class OrderRepositoryImpl implements IOrderRepository {
    @Autowired
    private OrderMapper mapper;
    @Override
    public List<Long> listOverTimeUnPaidOrderId(int overtimeInMinute) {
        List<Long> idList = mapper.listOverTimeUnPaidOrderId(overtimeInMinute);
        return idList;
    }

    @Override
    public int updateStateByBatchIds(List<Long> idList, Integer newState) {
        return mapper.updateStateByBatchIds(idList,newState);
    }
}
